package com.example.demo.web.filter;


import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.apache.shiro.web.servlet.OncePerRequestFilter;

/**
 * 配置自己的一次请求之走一遍的过滤器
 * <p>@author Henry.Y</p>
 *
 * <p>@date 2019-08-18</p>
 */
public class MyOncePerRequestFilter extends OncePerRequestFilter{

	protected void doFilterInternal(ServletRequest request,ServletResponse response,FilterChain filterChain)throws ServletException,IOException{
		System.out.println("once per request");
		filterChain.doFilter(request, response);  
	}
}
